package com.zhl.media.commonres.view;


import android.content.Context;

import com.zhl.media.commonres.R;
import com.zhy.adapter.abslistview.CommonAdapter;
import com.zhy.adapter.abslistview.ViewHolder;

import java.util.List;


public class DialogBottomAdapter extends CommonAdapter<String> {


    public DialogBottomAdapter(Context context, int layoutId, List<String> datas) {
        super(context, layoutId, datas);
    }

    @Override
    protected void convert(ViewHolder viewHolder, String item, int position) {
        viewHolder.setText(R.id.tv_bottom_item, item);

        if (position == mDatas.size() - 1) {
            viewHolder.setVisible(R.id.view_line, false);
        } else {
            viewHolder.setVisible(R.id.view_line, true);
        }
    }
}
